﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LogManager.Base.Models;

namespace LogManager.Base.Data
{
    /// <summary>
    /// Returns event types that are configured somewhere
    /// </summary>
    public interface IEventTypeService
    {
        /// <summary>
        /// Get all registered types
        /// </summary>
        /// <returns>Registered types</returns>
        IEnumerable<IEventType> All();

        /// <summary>
        /// Get type for a typeId
        /// </summary>
        /// <param name="typeId">Unique id of the type</param>
        /// <returns>Type with the typeId</returns>
        IEventType Get(string typeId);
    }
}
